package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.common.core.exception.SystemErrorType;
import com.springboot.cloud.demos.entity.form.UnitForm;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

@Component
public class UnitServiceFallback implements UnitService {
    @Override
    public Result unit(String levelId) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result<List<Map<String, Object>>> queryByLevelAndUser(String levelId, String userId) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result get(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public void update(UnitForm unitForm) {

    }

}
